home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Installer SDK Cornucopia 1.0.2 / DeveloperInterfaces / CIncludes / TargetVersMgt.h < prev   
Encoding:
C/C++ Source or Header  |  1996-09-30  |  914 b   |  50 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TargetVersMgt.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Copyright:    © 1993-1996 by Apple Computer, Inc., all rights reserved.
  7.  
  8. */
  9.  
  10.  
  11.  
  12. #ifndef __TargetVersMgt__
  13. #define __TargetVersMgt__
  14.  
  15. #ifndef __Files__
  16. #include <Files.h>
  17. #endif
  18.  
  19.  
  20. typedef struct {
  21.     FSSpec            fSrcFSSpec;
  22.     long            fSrcDataType;
  23.     Str31            fTgtFileName;
  24.     long            fTgtVersionNum;
  25.     ResType            fTgtFileType;        // Not supported in 4.0.0
  26.     ResType            fTgtFileCreator;    // Not supported in 4.0.0
  27. } TgtFileVersType;
  28.  
  29. typedef struct {
  30.     FSSpec            fSrcFSSpec;
  31.     long            fSrcDataType;
  32.     OSType            fSrcRsrcType;    
  33.     short            fSrcRsrcID;
  34.     OSType            fTgtRsrcType;    
  35.     short            fTgtRsrcID;
  36.     long            fTgtRsrcVersionNum;
  37. } TgtRsrcVersType;
  38.  
  39. typedef union {
  40.     TgtFileVersType            fFileVers;
  41.     TgtRsrcVersType            fRsrcVers;
  42. } TargetVersPB, *TargetVersPBPtr;
  43.  
  44. #define    kVersTypeIsFile    -1
  45. #define    kVersTypeIsRsrc    1
  46.  
  47. typedef long    (*TargetVersProcPtr)( TargetVersPBPtr );        
  48.                             
  49. #endif
  50.